import React from 'react'
import CouponInfo from '@/components/Coupon/Info'

// 路由列表 二级路由结构
const list = [
  {
    path: 'Info', // /guest/Info
    component: CouponInfo,
    auth: true,
  },
]

// 构建父级路由的组件结构
const Layout = () => <React.Router.Outlet />

// 构建顶级路由
const RouterList = [
  {
    path: '/coupon', //路由嵌套 父级路由
    component: Layout,
    children: list,
  }
]


export default RouterList
